package com.ayz.gateway.core.session.http;

/**
 * @ClassName HttpCommandType
 * @Description TODO:枚举类 HTTP的请求方式 默认支持 GET POST PUT DELETE 四种方式
 * @Author 快乐的星球
 * @Date 2023/5/8 11:23
 * @Version 1.0
 **/
public enum HttpCommandType {

    GET(1,"GET"),
    POST(2,"POST"),
    PUT(3,"PUT"),
    DELETE(4,"DELETE")
    ;
    private int code;//编号
    private String name;//名称


    HttpCommandType(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
